liwe.form.instance.prototype.rte = function ( vars )
{
	vars [ 'os3_class_value' ] = '';

	this._start_field ( vars );

	var rte = new WWL.rte ( vars [ 'name' ] );

	if ( vars [ 'w' ] ) rte.width = parseInt ( vars [ 'w' ], 10 );
	if ( vars [ 'h' ] ) rte.height = parseInt ( vars [ 'h' ], 10 );

	rte._start_value = vars [ 'value' ];

	this.html += rte.to_string ();

	this._widgets [ vars [ 'name' ] ] = rte;

	this._newline ( vars );

	rte.get_value = function ()
	{
		return rte.get_html ();
	};

	rte.set_value = function ( txt )
	{
		rte.set_html ( txt );
	};

	rte.render = function ()
	{
		if ( rte._start_value ) rte.set_value ( rte._start_value );
	};
};
